/* The access screen follows the centered market-console reference. */
html[data-theme] body.auth-page { --top: 0px; background: #03080e; }
html[data-theme] body.auth-page > .topbar { position: absolute; inset: 18px 22px auto; width: auto; height: 44px; padding: 0; border: 0; box-shadow: none; background: transparent; justify-content: flex-end; z-index: 5; }
html[data-theme] .auth-page > .topbar > .brand,
.auth-page > .topbar .landing-nav,
.auth-page > .topbar .login-link,
.auth-page > .topbar .get-started,
.auth-page > .topbar [data-menu-toggle] { display: none !important; }
html[data-theme] body.auth-page .command-access-centered { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,450px) minmax(0,1fr); gap: 35px; align-items: center; min-height: 100svh; max-width: none; padding: 82px max(28px,calc((100vw - 1240px) / 2)) 65px; margin: 0; overflow: hidden; }
.command-access-centered::before { background: radial-gradient(ellipse at center,#07355922,transparent 57%),linear-gradient(#2c50751a 1px,transparent 1px),linear-gradient(90deg,#2c50751a 1px,transparent 1px); background-size: auto,48px 48px,48px 48px; }
.command-access-centered .command-auth-ambient { inset-inline: 28px; top: 24px; justify-content: flex-start; font-size: 8px; letter-spacing: 1.8px; color: #42647e; }
.command-access-centered .command-auth-ambient > span:last-child { display: none; }
.command-access-orbit { position: absolute; width: min(82vw,770px); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 1px solid #086ab33d; border-radius: 50%; pointer-events: none; z-index: -1; box-shadow: 0 0 80px #006baf08; }
.command-access-orbit > i { position: absolute; inset: -8px; border: 1px solid transparent; border-inline-color: #177fbc33; border-radius: 50%; animation: access-orbit-spin 55s linear infinite; }
.command-access-orbit > span { position: absolute; left: 50%; white-space: nowrap; transform: translateX(-50%); font-size: 9px; letter-spacing: 3px; color: #246da1; }
.access-orbit-top { top: -17px; }
.access-orbit-bottom { bottom: -17px; }
html[data-theme] body.auth-page .command-auth-card { position: relative; z-index: 1; grid-column: 2; grid-row: 1; justify-self: center; width: 100%; max-width: 450px; border-radius: 18px; padding: 32px 34px 25px; border: 1px solid #1c405c; background: #07121cf5; box-shadow: 0 20px 70px #0007,0 0 60px #005da60b; }
.command-auth-card::before { content: ''; position: absolute; width: 40px; height: 30px; inset-inline-start: -6px; top: -6px; border-top: 1px solid #247dbd; border-inline-start: 1px solid #247dbd; pointer-events: none; }
html[data-theme] .auth-page .command-auth-card::after { opacity: .15; }
html[data-theme] .command-auth-card > .brand { flex-direction: column; gap: 16px; margin-bottom: 24px; }
html[data-theme] .command-auth-card > .brand > img { width: 67px; height: 67px; border: 1px solid #234760; border-radius: 50%; padding: 17px 21px; object-fit: contain; background: #020914; filter: none; box-shadow: 0 0 18px #006fac0a; }
.command-auth-card > .brand > span { color: #279aff; text-align: center; font-size: 13px; letter-spacing: 4px; }
.command-auth-card > .brand small { color: #88a1b6; font-size: 9px; letter-spacing: 1.2px; margin-top: 7px; }
html[data-theme] .command-auth-card h1 { font: 600 27px/1.35 var(--font); color: #e7f0fa; margin-bottom: 8px; }
html[data-theme] .command-auth-card > .hint { font-size: 12px; color: #8ca7bb; margin-bottom: 26px; }
.command-auth-card #auth-form { gap: 18px; }
html[data-theme] .command-auth-card .field { font-size: 12px; color: #b6c8d8; }
html[data-theme] .command-auth-card input:not([type="checkbox"]) { min-height: 50px; border: 1px solid #21445e; border-radius: 10px; background: #07131f; color: #e8f5ff; box-shadow: inset 0 1px 6px #0002; }
.command-auth-card .password-field .icon-btn { color: #7d9db4; }
html[data-theme] body.auth-page .command-auth-card .btn[type="submit"] { min-height: 49px; background: #0784f5; border: 1px solid #1998ff; border-radius: 8px; box-shadow: 0 0 24px #0073f33a,inset 0 1px 0 #81d2ff55; color: #fff; font-size: 12px; margin-top: 8px; }
.command-access-help { display: block; margin-top: 14px; font-size: 11px; color: #3496d7; text-align: end; }
.command-auth-card .auth-footer { margin-top: 21px; font-size: 11px; color: #819db3; }
.command-auth-card .admin-entry { min-height: 36px; padding-top: 13px; margin-top: 15px; font-size: 10px; }
.command-access-safety { font-size: 9px; line-height: 1.5; color: #7390a5; text-align: center; margin: 17px 0 0; }
.command-access-centered .command-auth-footer { position: absolute; inset-inline: 20px; bottom: 22px; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 22px; border: 0; padding: 0; color: #627f98; font-size: 8px; }
.command-access-centered .command-auth-footer > span:first-child { letter-spacing: 1.8px; }
.command-access-centered .command-access-quotes { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%,190px); margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; color: #cfdfeb; }
.command-access-quotes > h2 { color: #8aa7bd; font-size: 9px; font-weight: 600; letter-spacing: 2px; margin: 0 0 22px; }
.access-quote { padding-inline-start: 11px; border-inline-start: 1px solid #1c5b86; margin-bottom: 20px; direction: ltr; }
.access-quote > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }
.access-quote b,.access-quote strong { font-size: 12px; font-weight: 500; }
.access-quote > span { display: block; color: #33bfab; font-size: 10px; margin-top: 8px; }
.access-liquidity { padding: 12px; border: 1px solid #1d405d; border-radius: 10px; background: #071726; }
.access-liquidity > small { color: #7999af; font-size: 8px; letter-spacing: 1.3px; }
.access-liquidity > div { display: flex; align-items: flex-end; height: 39px; gap: 4px; margin-top: 6px; direction: ltr; }
.access-liquidity i { flex: 1; height: var(--bar-height); background: #126db7; border-top: 1px solid #268acf; transform-origin: bottom; animation: access-volume-reveal 1s var(--bar-delay) both; }
.access-demo-note { color: #627e94; font-size: 8px; line-height: 1.7; margin-top: 13px; }
.command-access-sonar { position: relative; grid-column: 3; grid-row: 1; align-self: center; justify-self: start; width: 190px; min-height: 260px; text-align: center; }
.access-sonar-disc { position: absolute; width: 160px; height: 160px; left: 50%; top: -29px; transform: translateX(-50%); border: 1px solid #1047754d; border-radius: 50%; box-shadow: inset 0 0 0 32px #08548405; overflow: hidden; }
.access-sonar-disc::before,.access-sonar-disc::after { content: ''; position: absolute; background: #1047754d; }
.access-sonar-disc::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.access-sonar-disc::after { top: 50%; left: 0; right: 0; height: 1px; }
.access-sonar-disc > i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(transparent 270deg,#0985d526); animation: access-orbit-spin 14s linear infinite; }
.access-sonar-disc > b { position: absolute; width: 3px; height: 3px; left: 29%; top: 36%; background: #2e9bc8; border-radius: 50%; box-shadow: 0 0 7px #2e9bc8; }
.command-access-sonar > small { display: block; position: relative; color: #61819b; font-size: 8px; letter-spacing: 1.7px; margin-top: 27px; }
.command-access-sonar > strong { display: block; position: relative; font-size: 10px; letter-spacing: 1px; color: #236ca5; margin-top: 11px; }
.access-market-bias { border-inline-end: 1px solid #245576; margin-top: 81px; padding-inline-end: 13px; text-align: end; }
.access-market-bias > small { display: block; color: #91adc1; font-size: 8px; letter-spacing: 1.8px; }
.access-market-bias > strong { display: block; color: #27d6b1; font-size: 13px; margin-top: 9px; }
.access-market-bias > span { display: block; color: #6d91ab; font-size: 9px; margin-top: 8px; }

/* The sidebar borrows the dashboard's circular tool nodes and thin connectors. */
html[data-theme] body.command-workspace .rail.command-rail { width: calc(var(--command-rail-width) - 12px); inset-block: calc(var(--top) + 12px) 12px; inset-inline-start: 6px; border: 1px solid #245e85; border-radius: 17px; background: radial-gradient(ellipse at 15% 20%,#0b40632b,transparent 65%),#04121e; box-shadow: inset 0 1px 0 #b5eaff1c,0 0 24px #058cdb16; }
@media (max-width: 1100px) {
  html[dir="rtl"] .command-workspace.command-menu-open .rail.command-rail { visibility: visible; transform: none; }
}
.command-rail::before { content: ''; position: absolute; inset: 0; opacity: .13; background: url('../img/hud-atmosphere.svg') center / cover; pointer-events: none; }
.command-rail > * { position: relative; }
.command-rail .command-rail-heading { padding: 20px 16px; min-height: 94px; gap: 11px; border-color: #17425d; }
.command-rail .command-rail-emblem { width: 43px; height: 43px; flex-basis: 43px; border-radius: 50%; border-color: #3e9dcf; background: radial-gradient(circle at 35% 20%,#0d456c,#041323 80%); box-shadow: 0 0 0 4px #106eab16,0 0 16px #009fff26,inset 0 0 10px #0798fb2b; }
.command-rail-emblem > img { width: 20px; height: 31px; object-fit: contain; filter: none; }
.command-rail .command-rail-links { padding: 15px 9px; }
.command-rail .command-nav-group { position: relative; }
.command-nav-group::before { content: ''; position: absolute; inset-inline-start: 29px; top: 43px; bottom: 26px; width: 1px; background: linear-gradient(transparent,#257aa258 20%,#257aa258 80%,transparent); pointer-events: none; }
.command-rail .command-nav-group > h2 { font-size: 8px; letter-spacing: 1.5px; color: #7ea3bf; margin-inline: 12px; }
.rail.command-rail .command-nav-group > a { min-height: 56px; padding: 6px 10px; gap: 12px; margin-block: 3px; border-radius: 30px 8px 8px 30px; font-size: 12px; background: transparent; }
html[dir="rtl"] .rail.command-rail .command-nav-group > a { border-radius: 8px 30px 30px 8px; }
.command-rail .command-nav-icon { position: relative; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #387fa9; border-radius: 50%; background: radial-gradient(circle at 40% 20%,#0c3553,#041424 80%); box-shadow: 0 0 0 3px #116ca314,inset 0 0 7px #007ca426; color: #79d8ff; font-size: 14px; }
.command-nav-icon::after { content: ''; position: absolute; inset: 3px; border: 1px solid #30769850; border-radius: 50%; pointer-events: none; }
html[data-theme] .rail.command-rail .command-nav-group > a.active { background: linear-gradient(90deg,#075c9226,#0a386034); border-color: #286c98; box-shadow: 0 0 15px #0b92ea15; color: #e9f8ff; }
.command-rail .command-nav-group > a.active .command-nav-icon { background: radial-gradient(circle at 40% 25%,#0d5785,#072338); border-color: #71d8ff; color: #c4f4ff; box-shadow: 0 0 0 3px #1499ff19,0 0 20px #079fff59,inset 0 0 9px #08a8fc45; }
.command-rail .command-nav-group > a:hover .command-nav-icon { border-color: #93e8ff; box-shadow: 0 0 16px #1da8ff3d; }
.command-rail .command-rail-bottom { background: #061a28ba; border-top-color: #1b455f; }
.rail.command-rail .command-pilot { border-radius: 27px 9px 9px 27px; background: #0a2437; border-color: #285875; }
html[dir="rtl"] .rail.command-rail .command-pilot { border-radius: 9px 27px 27px 9px; }
.command-rail .command-pilot > img { border-color: #55b5e5; box-shadow: 0 0 0 3px #137cb31b; }
.command-rail-folded .command-rail .command-rail-heading { justify-content: center; padding: 19px 10px; }
.command-rail-folded .command-rail .command-rail-links { padding-inline: 8px; }
.command-rail-folded .command-nav-group::before { inset-inline-start: 27px; }
.command-rail-folded .rail.command-rail .command-nav-group > a { border-radius: 50%; }
.command-rail-folded .rail.command-rail .command-pilot { border-radius: 50%; }

/* A readable welcome from frame one, with a cinematic trading-cockpit backdrop. */
.cockpit-arrival.arrival-cinematic { background: #020913; }
.arrival-cinematic .arrival-universe { background: radial-gradient(ellipse at 50% 45%,#06569c5c,transparent 56%),radial-gradient(#9be8ff99 .7px,transparent 1.3px); background-size: auto,99px 79px; }
.arrival-cinematic .arrival-topline { align-items: center; font-size: 9px; }
.arrival-wordmark { display: flex; align-items: center; gap: 12px; color: #e4f4ff; font-size: 13px; letter-spacing: 2px; }
.arrival-wordmark img { object-fit: contain; filter: none; }
.arrival-wordmark b { color: #4882a8; font-size: 8px; font-weight: 400; letter-spacing: 1.5px; }
.arrival-cinematic .arrival-content { position: relative; padding: 28px 20px 20px; margin-block: 24px 18px; opacity: 1; animation: arrival-seat-in .7s cubic-bezier(.16,.75,.3,1) both; }
.arrival-content::before,.arrival-content::after { content: ''; position: absolute; width: 38px; height: 38px; border-color: #4dafe06b; border-style: solid; pointer-events: none; }
.arrival-content::before { top: 0; inset-inline-start: 0; border-width: 1px 0 0 1px; }
.arrival-content::after { bottom: 0; inset-inline-end: 0; border-width: 0 1px 1px 0; }
.arrival-cinematic .arrival-portrait { width: 128px; height: 128px; padding: 10px; margin-bottom: 26px; border-color: #63d0ff; box-shadow: 0 0 0 5px #0b7bcb3b,0 0 0 13px #138bdb0e,0 0 55px #0a93ff69,inset 0 0 24px #058eee22; }
.arrival-cinematic .arrival-portrait > span { inset: -16px; border-width: 2px; animation-duration: 2.8s; }
.arrival-cinematic .arrival-title { color: #8dc0e1; font-size: clamp(22px,3vw,30px); }
.arrival-cinematic .arrival-name { color: #f3fbff; font-size: clamp(33px,5vw,57px); text-shadow: 0 0 34px #30b8ff3d; }
.arrival-cinematic .arrival-chart { inset-block-start: 26%; width: min(95vw,1200px); opacity: .13; }
.arrival-cinematic .arrival-grid { inset-block-start: 66%; opacity: .75; }
.arrival-cinematic .arrival-door { width: 50%; background: linear-gradient(100deg,#031220,#020b16); animation-duration: .8s; z-index: 0; }
.arrival-cinematic .arrival-orbit { width: min(77vw,690px); border-color: #197bbf44; box-shadow: 0 0 0 25px #087dc80b,0 0 0 65px #087dc807,0 0 80px #0092ff28; }
.arrival-tunnel { position: absolute; inset: 0; perspective: 700px; transform-style: preserve-3d; }
.arrival-tunnel > span { position: absolute; width: min(80vw,850px); aspect-ratio: 1.45; left: 50%; top: 50%; border: 1px solid #329ee844; border-radius: 22%; opacity: 0; animation: arrival-tunnel-flight 2.9s calc(var(--tunnel-step) * .18s) ease-out both; }
.arrival-streaks { position: absolute; inset: 50%; }
.arrival-streaks > i { position: absolute; left: 0; top: 0; width: 170px; height: 1px; transform-origin: left center; background: linear-gradient(90deg,transparent,#87e4ff99,transparent); opacity: 0; animation: arrival-streak-flight 1.1s var(--streak-delay) ease-out both; }
.arrival-telemetry { position: absolute; top: 36%; width: 160px; padding: 18px 12px; border-top: 1px solid #247fa65c; border-bottom: 1px solid #247fa62b; text-align: start; color: #799db7; }
.arrival-telemetry-left { left: 6%; }
.arrival-telemetry-right { right: 6%; text-align: end; }
.arrival-telemetry > small { display: block; font-size: 8px; letter-spacing: 1.6px; color: #4d8eb6; }
.arrival-telemetry > b { display: block; margin-top: 11px; color: #75c2eb; font: 500 21px/1.2 var(--font); letter-spacing: 1px; }
.arrival-telemetry > span { display: block; margin-top: 7px; font-size: 8px; letter-spacing: 1px; }
.arrival-telemetry > i { display: block; width: 35px; height: 2px; background: #1991bb; margin: 23px 0; box-shadow: 0 0 12px #1991bb; }
.arrival-cinematic .arrival-route { margin-top: 25px; }
.arrival-cinematic .arrival-progress { height: 3px; margin-top: 24px; }
.arrival-cinematic .arrival-controls .btn { border-radius: 8px; }
.arrival-cinematic .arrival-controls .btn.primary { box-shadow: 0 0 22px #0587ff33; }

html[data-theme="light"] body.auth-page { background: #eaf2f8; }
html[data-theme="light"] body.auth-page .command-auth-card { background: #f7fbfff5; border-color: #a7c6df; box-shadow: 0 20px 65px #1d456923; }
html[data-theme="light"] .command-auth-card h1 { color: #183e59; }
html[data-theme="light"] .command-auth-card .field { color: #3b607e; }
html[data-theme="light"] .command-auth-card input:not([type="checkbox"]) { color: #153b58; background: #f1f7fc; border-color: #a7c5dd; }
html[data-theme="light"] .command-auth-card > .hint,html[data-theme="light"] .command-access-safety { color: #56748a; }
html[data-theme="light"] .command-auth-card > .brand small { color: #648096; }
html[data-theme="light"] .command-auth-card .auth-footer { color: #587993; }
html[data-theme="light"] .command-access-help { color: #156b9b; }
html[data-theme="light"] .command-access-centered .command-access-quotes { color: #224b6a; }
html[data-theme="light"] .command-access-quotes > h2 { color: #557790; }
html[data-theme="light"] .access-quote > span { color: #087b64; }
html[data-theme="light"] .access-liquidity { background: #e1edf7; border-color: #a1c5e0; }
html[data-theme="light"] .access-liquidity > small,html[data-theme="light"] .access-demo-note { color: #4c708b; }
html[data-theme="light"] .access-market-bias > strong { color: #087a65; }
html[data-theme="light"] body.command-workspace .rail.command-rail { background: radial-gradient(ellipse at 15% 20%,#98d3f129,transparent 65%),#eef7fe; border-color: #9ec5df; box-shadow: 0 0 24px #247eba12; }
html[data-theme="light"] .command-rail .command-nav-group > h2 { color: #4b7490; }
html[data-theme="light"] .command-rail .command-nav-icon { color: #a2e6ff; background: radial-gradient(circle at 40% 20%,#175582,#092944); border-color: #438bba; }
html[data-theme="light"] .rail.command-rail .command-nav-group > a.active { color: #12466b; background: linear-gradient(90deg,#c3e1f677,#d0e8f833); border-color: #84badc; }
html[data-theme="light"] .command-rail .command-rail-bottom { background: #dfedf8ce; }
html[data-theme="light"] .rail.command-rail .command-pilot { background: #f4fbff; border-color: #a8cbe2; }

@keyframes access-orbit-spin { to { transform: rotate(360deg); } }
@keyframes access-volume-reveal { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes arrival-seat-in { from { transform: translateY(10px) scale(.94); } to { transform: none; } }
@keyframes arrival-tunnel-flight { 0% { transform: translate(-50%,-50%) translateZ(-280px); opacity: 0; } 30% { opacity: .55; } 100% { transform: translate(-50%,-50%) translateZ(420px); opacity: 0; } }
@keyframes arrival-streak-flight { 0% { transform: rotate(var(--streak-angle)) translateX(120px) scaleX(.3); opacity: 0; } 30% { opacity: .6; } 100% { transform: rotate(var(--streak-angle)) translateX(620px) scaleX(1.5); opacity: 0; } }

@media (max-width: 1100px) {
  html[data-theme] body.command-workspace .rail.command-rail { inset-block: 8px; inset-inline-start: 8px; width: min(290px,calc(100vw - 32px)); }
  .command-rail-folded .rail.command-rail .command-nav-group > a { border-radius: 28px 8px 8px 28px; }
  .command-rail-folded .rail.command-rail .command-pilot { border-radius: 28px 8px 8px 28px; }
  .command-rail-folded .command-rail .command-rail-heading { justify-content: flex-start; padding: 20px 16px; }
  .command-rail-folded .command-nav-group::before { inset-inline-start: 29px; }
}
@media (max-width: 1000px) {
  html[data-theme] body.auth-page .command-access-centered { grid-template-columns: minmax(0,450px); justify-content: center; padding: 80px 24px 76px; }
  html[data-theme] body.auth-page .command-auth-card { grid-column: 1; }
  .command-access-centered .command-access-quotes,.command-access-centered .command-access-sonar { display: none; }
  .command-access-orbit { width: min(130vw,760px); }
  .arrival-telemetry { display: none; }
}
@media (max-width: 600px) {
  html[data-theme] body.auth-page > .topbar { inset: 14px 16px auto; }
  .command-access-centered .command-auth-ambient { inset-inline: 18px; top: 29px; font-size: 6px; letter-spacing: .7px; max-width: 200px; }
  html[data-theme] body.auth-page .command-access-centered { padding: 77px 17px 74px; }
  html[data-theme] body.auth-page .command-auth-card { padding: 26px 22px 21px; border-radius: 15px; }
  html[data-theme] .command-auth-card h1 { font-size: 25px; }
  html[data-theme] .command-auth-card > .brand { gap: 14px; margin-bottom: 22px; }
  html[data-theme] .command-auth-card > .hint { font-size: 11px; margin-bottom: 23px; }
  .command-access-centered .command-auth-footer { flex-direction: column; align-items: center; gap: 7px; font-size: 7px; bottom: 20px; }
  .arrival-wordmark { gap: 8px; font-size: 11px; }
  .arrival-wordmark b { display: none; }
  .arrival-cinematic .arrival-topline { font-size: 7px; }
  .arrival-cinematic .arrival-content { padding: 23px 12px 18px; margin-block: 20px; }
  .arrival-cinematic .arrival-portrait { width: 104px; height: 104px; padding: 8px; margin-bottom: 24px; }
  .arrival-cinematic .arrival-name { font-size: 34px; }
  .arrival-cinematic .arrival-title { font-size: 23px; }
  .arrival-cinematic .arrival-orbit { width: 110vw; }
  .arrival-tunnel > span { width: 125vw; }
}
@media (prefers-reduced-motion: reduce) {
  .command-access-orbit > i,.access-sonar-disc > i,.access-liquidity i,.arrival-cinematic .arrival-content,.arrival-tunnel > span,.arrival-streaks > i { animation: none !important; }
}

/* Shared saturated chrome; keep auth artwork and logos untouched. */
html[data-theme] body.workspace .topbar {
  background: var(--chrome-gradient);
  border-color: var(--line);
  box-shadow: 0 2px 0 #1388ff1a, 0 5px 22px #1388ff1c;
}
html[data-theme] body.command-workspace .rail.command-rail {
  background: radial-gradient(ellipse at 40% 0%, #007dff29, transparent 58%), var(--nav-surface);
  border-color: var(--line-hi);
  box-shadow: inset 0 1px 0 #45bdff38, 0 0 20px #0088ff24;
}
html[data-theme] body.command-workspace .command-nav-icon {
  color: var(--accent-cyan);
  border-color: #009eff;
  background: radial-gradient(circle at 35% 20%, #006bba, #03213d 78%);
  box-shadow: inset 0 1px 0 #5cdfff66, 0 0 10px #009eff45;
}
html[data-theme="light"] body.command-workspace .command-nav-icon {
  color: var(--blue);
  background: linear-gradient(145deg, #ffffff, #d8eeff);
  border-color: #188bff;
  box-shadow: inset 0 1px 0 #fff, 0 0 10px #1388ff2b;
}
html[data-theme] body :is(.tabs, .timeframes) :is(a, button).active {
  color: var(--on-blue);
  background: linear-gradient(135deg, var(--fill-blue-start), var(--fill-blue-end));
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px #1388ff42;
}

/* Live registration keeps the reference access card while fitting the real account fields. */
@media (min-width: 900px) {
  .auth-page main[data-register-basic] .command-auth-card {
    inline-size: min(860px, calc(100vw - 96px));
    max-inline-size: 860px;
  }

  .auth-page main[data-register-basic] #auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px 20px;
  }

  .auth-page main[data-register-basic] #auth-form > .field {
    min-inline-size: 0;
    margin: 0;
  }

  .auth-page main[data-register-basic] #auth-form > .access-approval,
  .auth-page main[data-register-basic] #auth-form > .btn {
    grid-column: 1 / -1;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .auth-page main[data-register-basic] .auth-card.command-auth-card {
    width: min(920px, calc(100vw - 96px)) !important;
    max-width: min(920px, calc(100vw - 96px)) !important;
    inline-size: min(920px, calc(100vw - 96px)) !important;
    max-inline-size: min(920px, calc(100vw - 96px)) !important;
  }
}

/* The live auth inputs retain the reference eye control inside each password field. */
.auth-page .password-control {
  position: relative;
  display: block;
}

.auth-page .password-control > input {
  padding-inline-end: 56px;
}

.auth-page .password-control > [data-show-password],
.auth-page .password-control > [data-password-toggle] {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-start: 50%;
  transform: translateY(-50%);
}

.workspace[data-page='trade-control'] [data-live-trade-control] .manager-panel .percentage-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
}

.workspace[data-page='trade-control'] [data-live-trade-control] .manager-panel .percentage-actions > .btn {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  min-width: 0;
}

@media (min-width: 1025px) {
  .workspace[data-page='trade-control'] [data-live-trade-control] .manager-panel .percentage-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
}

.workspace[data-page='market-news'] .market-news-live,
.workspace[data-page='market-news'] .market-news-live :is(.news-layout, .market-news-side, .hud-widget) {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.workspace[data-page='market-news'] .market-news-live .news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: 20px;
  align-items: start;
}

.workspace[data-page='market-news'] .market-news-side {
  display: grid;
  gap: 20px;
}

.workspace[data-page='market-news'] .market-news-live .panel-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.workspace[data-page='market-news'] .market-news-live .panel-head h2 > i {
  color: var(--cyan);
}

.workspace[data-page='market-news'] .market-news-utc {
  color: var(--muted);
  font: 500 10px var(--heading);
  letter-spacing: .7px;
}

.workspace[data-page='market-news'] .market-news-widget {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  inline-size: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input);
}

.workspace[data-page='market-news'] .market-news-calendar {
  block-size: clamp(420px, 61dvh, 620px);
  min-block-size: 420px;
}

.workspace[data-page='market-news'] .market-news-headlines {
  block-size: 340px;
  min-block-size: 340px;
}

.workspace[data-page='market-news'] .market-news-widget :is(.tradingview-widget-container, .tradingview-widget-container__widget, iframe) {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

.workspace[data-page='market-news'] .hud-widget-status {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--input);
  text-align: center;
}

.workspace[data-page='market-news'] .market-news-provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}

.workspace[data-page='market-news'] .market-news-provider > span {
  min-inline-size: 0;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.workspace[data-page='market-news'] .market-news-sessions .session-row {
  gap: 8px;
  min-inline-size: 0;
}

.workspace[data-page='market-news'] .market-news-sessions .session-row .badge {
  max-inline-size: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .workspace[data-page='market-news'] .market-news-live .news-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace[data-page='market-news'] .market-news-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .workspace[data-page='market-news'] .market-news-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace[data-page='market-news'] .market-news-calendar {
    block-size: min(58dvh, 430px);
    min-block-size: 340px;
  }

  .workspace[data-page='market-news'] .market-news-headlines {
    block-size: min(54dvh, 390px);
    min-block-size: 320px;
  }
}
